namespace SubSonic
{
    using System;
    using System.Collections.Generic;
    using System.Data;

    public class QueryParameterCollection : List<QueryParameter>
    {
        public void Add(string parameterName, object value)
        {
            QueryParameter item = new QueryParameter();
            item.ParameterName = parameterName;
            item.ParameterValue = value;
            base.Add(item);
        }

        public void Add(string parameterName, object value, DbType dataType)
        {
            QueryParameter item = new QueryParameter();
            item.ParameterName = parameterName;
            item.ParameterValue = value;
            item.DataType = dataType;
            base.Add(item);
        }

        public void Add(string parameterName, object value, DbType dataType, ParameterDirection mode)
        {
            QueryParameter item = new QueryParameter();
            item.ParameterName = parameterName;
            item.ParameterValue = value;
            item.DataType = dataType;
            item.Mode = mode;
            base.Add(item);
        }
    }
}

